package com.dxh.sqlSession;

import java.util.List;

public interface SqlSession {
    //查询所有
    public <E> List<E> selectList(String statementId,Object... params) throws Exception;


    //根据条件查询单个
    public <T> T selectOne(String statementId,Object... params) throws Exception;

    //增删改操作
    public Integer insert(String statementId,Object... params) throws Exception;
    public Integer delete(String statementId,Object... params) throws Exception;
    public Integer update(String statementId,Object... params) throws Exception;


    //为Dao接口生产代理实现类
    public <T> T getMapper(Class<?> mapperClass);
}
